package com.c.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.c.entity.Address;
import com.c.entity.CheckItem;
import com.c.entity.SportItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-12-31-13:01
 */
@Repository
public interface SportItemMapper extends BaseMapper<SportItem> {

    //根据条件查询对应的id集合
    Integer[] selectIdsByCondtion(@Param("queryString") String queryString, @Param("i") int i, @Param("pageSize") Integer pageSize);
    //根据id集合查询数据，走主键索引
    List<SportItem> selectSportItems(Integer[] sportItemids);
    //根据运动项id统计是否关联运动组
    long findCountBySportItemId(Integer id);
}
